package com.suixinsanren.design.command.demo03;

public class Fan {

    private final String name;
    private final String location;

    public Fan(String name, String location) {
        this.name = name;
        this.location = location;
    }

    public void on() {
        System.out.println(location + "的" + name + "风扇已打开");
    }

    public void off() {
        System.out.println(location + "的" + name + "风扇已关闭");
    }
}
